export const mixin = {
	data() {
		return {
			scrollHeight: 0, //滚动区域高
			headerHeight: 0 //导航高
		}
	},
	methods: {
		async getElmentInfo() {
			const window = await uni.getSystemInfo() //获取系统高
			const el = await this.$u.getRect('.header') //导航节点信息
			this.headerHeight = el.height //导航高
			this.scrollHeight = window[1].windowHeight - el.height
		}
	},
	mounted() {
		this.getElmentInfo()
	}
}
